package fenkufenbiao;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @program: homeWork
 * @description:
 * @author: hezhiqin
 * @create: 2019-09-27 08:31
 */
public class Test {
    public static void main(String[] args) {
        try {
            Order order = new Order();
            // Date today = new Date();
            // order.setCreateTime(today.getTime());
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
            Date date = sdf.parse("2017/02/01");
            order.setCreateTime(date.getTime());
            IOrderService orderService = new OrderServiceStaticProxy(new OrderService());
            orderService.createOrder(order);
        }catch (Exception e){
            e.printStackTrace();
        }
    }


}
